<script setup>
import {reactive} from 'vue';

const table = reactive({
  tableData: [],
  columns: [
    {
      title: '编号',
      dataIndex: 'id'
    }
  ]
})
</script>

<template>
<a-table :dataSource="table.tableData"
         :columns="table.columns"
         :pagination="false"
         rowKey="id">
</a-table>
<a-pagination :total="table.tableData.length"/>
</template>